package main;

public class Main {
	public static long totalTime = 0;

	public static void main(String[] args) {
		long startTime = System.currentTimeMillis();
		
		Parser parser = new Parser("./src/input.txt");
		Graph graph = parser.parse();
		graph.print();
		
		TaskDispatcher dispatcher = new TaskDispatcher(graph); 
		dispatcher.kickOff();
		long endTime = System.currentTimeMillis();
		System.out.println("System time elapsed: " + ((endTime - startTime)/1000));
		System.out.println("Total time taken by all threads: " + (totalTime/1000));
	}

}
